<?php

namespace common\models\member;

use Yii;

/**
 * This is the model class for table "{{%member_project}}".
 *
 * @property int $member_id 用户ID
 * @property int $project_id 项目ID
 * @property int $leader_type 类型【0普通、1项目管理员】
 */
class MemberProject extends \common\models\base\BaseModel
{
    const LEADER_TYPE_NORMAL = 0;
    const LEADER_TYPE_ADMIN = 1;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%member_project}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['member_id', 'project_id', 'leader_type'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'member_id' => '用户ID',
            'project_id' => '项目ID',
            'leader_type' => '类型【0普通、1项目管理员】',
        ];
    }
}
